﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_admin.aspx.cs" Inherits="skvote.admin_admin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<%skvote.function.header(Response);%>
<title>【单考投票系统】后台管理中心</title>
</head>
<script language="javascript">
function check(){
	if(form1.username.value==""){
		lbluser.innerHTML = "登录名不能为空！";
		form1.username.focus();
		return false;}
	else{
		lbluser.innerHTML = "";}	
	if(form1.password.value==""){
		lblpass.innerHTML = "密码不能为空！";
		form1.password.focus();
		return false;}
	else{
		lblpass.innerHTML = "";}	
	if(form1.password1.value!=form1.password.value){
		lblpass1.innerHTML = "两次密码不一致！";
		form1.password1.focus();
		return false;}
	else{
		lblpass1.innerHTML = "";}	
	return true;
	}			
</script>
<body>
<table border="0" cellpadding="1" cellspacing="2" width="100%" id="table1" bgcolor="#E1F0FF">
  <tr>
    <td>
	<table width="100%" id="table2" cellspacing="1">
	 <tr>
      <td id="TableTitle1"> 修改管理员信息-&gt;</td>
     </tr>
	 </table>
	 </td>
  </tr>
  <tr>
    <td><table border="1" cellpadding="4" cellspacing="0" width="100%" id="table2" bordercolor="#BFDFFF">
        <form action="admin_admin.aspx?act=save" method="post" id="form1" name="form1" onSubmit="return check()" runat="server">
          <tr>
            <td width="20%" align="right">管理员名称：</td>
            <td><input type="text" id="username" name="username" value="<%=cfg.getUsername()%>"><label id="lbluser"></label></td>
          </tr>
          <tr>
            <td width="20%" align="right">管理员密码：</td>
            <td><input type="password" id="password" name="password"><label id="lblpass"></label></td>
          </tr>
          <tr>
            <td width="20%" align="right">重复密码：</td>
            <td><input type="password" id="password1" name="password1"><label id="lblpass1"></label></td>
          </tr>
          <tr>
            <td colspan="2" align="center" bgcolor="#BFDFFF">
            <!--<input class="btn" type="submit" name="submit" value=" 修 改 ">-->
            <asp:Button CssClass="btn" ID="submit" name="submit" Text=" 修 改 " runat="server" 
                    onclick="submit_Click" />
            </td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
</body>
</html>